import { userLogin } from '../../services/login'
Page({
    data: { 
        isLoading: false,
        agreementChecked: false
     },
    handleLogin() {
      this.setData({ isLoading: true })
      wx.login({
        success: res => {
          if (res.code) {
            userLogin(res)
          }
        },
        complete: () => this.setData({ isLoading: false })
      })
    },
    onChecked(e) {
        console.log(e)
    }
  })
  